friends1={"zero","kevin","jason","egon"}
friends2={"Jy","ricky","jason","egon"}

# l=[]
# for x in friends1:
#     if x in friends2:
#         l.append(x)
# print(l)
# type(dict(friends1))
# dict(friends2)
res=friends1 & friends2
print(friends1.intersection(friends2))
print(res)


#4.2
print(friends1|friends2)

#4.3
print(friends1-friends2)

print(friends2-friends1)

print((friends1-friends2)|(friends2-friends1))

print(friends1^friends2)
